Optimal. Leaf size=204 \[ -\frac {5 (3 A-2 B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 a^2 d}+\frac {7 (8 A-5 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 a^2 d}-\frac {(3 A-2 B) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{a^2 d (\cos (c+d x)+1)}+\frac {7 (8 A-5 B) \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{15 a^2 d}-\frac {5 (3 A-2 B) \sin (c+d x) \sqrt {\cos (c+d x)}}{3 a^2 d}-\frac {(A-B) \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{3 d (a \cos (c+d x)+a)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.42, antiderivative size = 204, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 6, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {2954, 2977, 2748, 2635, 2641, 2639} \[ -\frac {5 (3 A-2 B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 a^2 d}+\frac {7 (8 A-5 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 a^2 d}-\frac {(3 A-2 B) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{a^2 d (\cos (c+d x)+1)}+\frac {7 (8 A-5 B) \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{15 a^2 d}-\frac {5 (3 A-2 B) \sin (c+d x) \sqrt {\cos (c+d x)}}{3 a^2 d}-\frac {(A-B) \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{3 d (a \cos (c+d x)+a)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2635
Rule 2639
Rule 2641
Rule 2748
Rule 2954
Rule 2977
Rubi steps
\begin {align*} \int \frac {\cos ^{\frac {5}{2}}(c+d x) (A+B \sec (c+d x))}{(a+a \sec (c+d x))^2} \, dx &=\int \frac {\cos ^{\frac {7}{2}}(c+d x) (B+A \cos (c+d x))}{(a+a \cos (c+d x))^2} \, dx\\ &=-\frac {(A-B) \cos ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac {\int \frac {\cos ^{\frac {5}{2}}(c+d x) \left (-\frac {7}{2} a (A-B)+\frac {1}{2} a (11 A-5 B) \cos (c+d x)\right )}{a+a \cos (c+d x)} \, dx}{3 a^2}\\ &=-\frac {(3 A-2 B) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{a^2 d (1+\cos (c+d x))}-\frac {(A-B) \cos ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac {\int \cos ^{\frac {3}{2}}(c+d x) \left (-\frac {15}{2} a^2 (3 A-2 B)+\frac {7}{2} a^2 (8 A-5 B) \cos (c+d x)\right ) \, dx}{3 a^4}\\ &=-\frac {(3 A-2 B) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{a^2 d (1+\cos (c+d x))}-\frac {(A-B) \cos ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac {(7 (8 A-5 B)) \int \cos ^{\frac {5}{2}}(c+d x) \, dx}{6 a^2}-\frac {(5 (3 A-2 B)) \int \cos ^{\frac {3}{2}}(c+d x) \, dx}{2 a^2}\\ &=-\frac {5 (3 A-2 B) \sqrt {\cos (c+d x)} \sin (c+d x)}{3 a^2 d}+\frac {7 (8 A-5 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 a^2 d}-\frac {(3 A-2 B) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{a^2 d (1+\cos (c+d x))}-\frac {(A-B) \cos ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac {(7 (8 A-5 B)) \int \sqrt {\cos (c+d x)} \, dx}{10 a^2}-\frac {(5 (3 A-2 B)) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{6 a^2}\\ &=\frac {7 (8 A-5 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 a^2 d}-\frac {5 (3 A-2 B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 a^2 d}-\frac {5 (3 A-2 B) \sqrt {\cos (c+d x)} \sin (c+d x)}{3 a^2 d}+\frac {7 (8 A-5 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 a^2 d}-\frac {(3 A-2 B) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{a^2 d (1+\cos (c+d x))}-\frac {(A-B) \cos ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 7.08, size = 1396, normalized size = 6.84 \[ \text {result too large to display} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.45, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (B \cos \left (d x + c\right )^{2} \sec \left (d x + c\right ) + A \cos \left (d x + c\right )^{2}\right )} \sqrt {\cos \left (d x + c\right )}}{a^{2} \sec \left (d x + c\right )^{2} + 2 \, a^{2} \sec \left (d x + c\right ) + a^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \sec \left (d x + c\right ) + A\right )} \cos \left (d x + c\right )^{\frac {5}{2}}}{{\left (a \sec \left (d x + c\right ) + a\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 5.01, size = 465, normalized size = 2.28 \[ -\frac {\sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (96 A \left (\cos ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-352 A \left (\cos ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+80 B \left (\cos ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+120 A \left (\cos ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-150 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\cos ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-336 A \left (\cos ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+60 B \left (\cos ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+100 B \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\cos ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+210 B \left (\cos ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+266 A \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-240 B \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-135 A \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+105 B \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+5 A -5 B \right )}{30 a^{2} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \sec \left (d x + c\right ) + A\right )} \cos \left (d x + c\right )^{\frac {5}{2}}}{{\left (a \sec \left (d x + c\right ) + a\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\cos \left (c+d\,x\right )}^{5/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )}{{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________